package com.example.demo.util;

public class IntegerToStringUtil {

    public static String changerIdtype( Integer idtype ) {
        if( idtype == 1)   return "居民身份证";
        else if (idtype == 2)   return "军官证";
        else if (idtype == 3)   return "士兵证";
        else if (idtype == 4)   return "文职干部证";
        else if (idtype == 5)   return "部队离退休证";
        else if (idtype == 6)   return "香港特别护照/身份证";
        else if (idtype == 7)   return "澳门特别护照/身份证";
        else if (idtype == 8)   return "台湾居民来往大陆通行证";
        else if (idtype == 9)   return "境外永久居住证";
        else if (idtype == 10)  return "护照";
        else if (idtype == 11)  return "户口簿";
        else return "其他";
    }

    public static String changerHealth( Integer health ) {
        if( health == 1)   return "良好";
        else if (health == 2)   return "异常（发热，体温在37.3°C以上）";
        else if (health == 3)   return "异常（咳嗽）";
        else if (health == 4)   return "异常（头晕）";
        else if (health == 5)   return "异常（腹泻）";
        else if (health == 6)   return "异常（乏力）";
        else return "异常（同时含两种以上症状）";
    }

    public static String changerArival( Integer arrival ) {
        if( arrival == 1)   return "是";
        else   return "否";
    }

    public static String changerContactper( Integer contactper ) {
        if( contactper == 1)   return "是";
        else   return "否";
    }

    public static String changerContactsick( Integer contactsick ) {
        if( contactsick == 1)   return "是";
        else   return "否";
    }

    public static String changerQuarantine( Integer quarantine ) {
        if( quarantine == 1)   return "否，没有隔离";
        else if (quarantine == 2)   return "否，在外地集中隔离或居家观察";
        else if (quarantine == 3)   return "是，居家观察";
        else return "是，集中隔离";
    }

    public static String changerAtguan( Integer atguan ) {
        if( atguan == 1)   return "是，在莞";
        else if (atguan == 2)   return "否，已确定返莞时间";
        else return "否，返莞时间未定";
    }

    public static String changerReturnguan( Integer returnguan ) {
        if( returnguan == 1)   return "是";
        else   return "否";
    }

    public static String changerLeaveguan( Integer leaveguan ) {
        if( leaveguan == 1)   return "否，留莞一直未出行";
        else if (leaveguan == 2)   return "否，一直在异地，期间暂未回莞";
        else if (leaveguan == 3)   return "否，期间新增回莞，为出行";
        else if (leaveguan == 4)   return "是，期间偶尔回莞，此时已经回莞";
        else return "是，期间偶尔离莞，此时未回莞";
    }

    public static String changerKeygroups( Integer keygroups ) {
        if( keygroups == 1)   return "否";
        else if (keygroups == 2)   return "是，有疑似症状";
        else if (keygroups == 3)   return "是，近14天途径疫情防控重点地区";
        else if (keygroups == 4)   return "是，最近14天曾接触过“近14天出入过疫情重点防控地区”的人员";
        else return "是，最近14天曾接触过疑似病例或确证病例";
    }

    public static String changerSituation( Integer situation ) {
        if( situation == 1)   return "以下均无";
        else if (situation == 2)   return "到达或途径疫情重点防控地区";
        else if (situation == 3)   return "接触过近14天出入过疫情重点防控地区的人员";
        else if (situation == 4)   return "接触过疑似病例/确证病例";
        else return "疑似病例/确证病例";
    }


}
